﻿@{
    ViewBag.Title = "Waiting";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}
<div class="contentcontainer">
    <div class="headings altheading">
        <h2>
            文档列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>
                        名称
                    </th>
                    <th>
                        发布者
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        属性
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        价值
                    </th>
                    <th>
                        下载
                    </th>
                    <th>
                        管理
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Document>)ViewData["Doc"])
                {
                    <tr class="alt">
                        <td>
                            @item.Title
                        </td>
                        <td>
                            @item.Contributor
                        </td>
                        <td>
                            @item.AddTime
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.IsPublic), item.IsPublic)
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State), item.State)
                        </td>
                        <td>
                            @item.Value
                        </td>
                        <td>
                            <a href="@Url.Content(item.LoadUrl)">下载文档</a>
                        </td>
                        <td>
                            <a href="@Url.Action("DoApproveD", "Zone", new { id = item.Id })" title="">同意</a>
                            <a href="@Url.Action("DoCancelD", "Zone", new { id = item.Id })" title="">不同意</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;">
        </div>
    </div>
</div>
<div class="contentcontainer">
    <div class="headings altheading">
        <h2>
            知识列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>
                        名称
                    </th>
                    <th>
                        发布者
                    </th>
                    <th>
                        知识类型
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        关注次数
                    </th>
                    <th>
                        管理
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Knowledge>)ViewData["Kno"])
                {
                    <tr class="alt">
                        <td>
                            @item.Title
                        </td>
                        <td>
                            @item.UserName
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.KFirstSort), item.FirstSort)
                        </td>
                        <td>
                            @item.AddTime
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State), item.State)
                        </td>
                        <td>
                            @item.ClickNum
                        </td>
                        <td>
                            <a href="@Url.Action("DoApproveK", "Zone", new { id = item.Id })" title="">同意</a>
                            <a href="@Url.Action("DoCancelK", "Zone", new { id = item.Id })" title="">不同意</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;">
        </div>
    </div>
</div>
<div class="contentcontainer">
    <div class="headings altheading">
        <h2>
            商品列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>
                        名称
                    </th>
                    <th>
                        发布者
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        类别
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        价格
                    </th>
                    <th>
                        管理
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Commodity>)ViewData["Com"])
                {
                    <tr class="alt">
                        <td>
                            @item.Title
                        </td>
                        <td>
                            @item.UserName
                        </td>
                        <td>
                            @item.AddTime
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.GoodType), item.Sort)
                        </td>
                        <td>
                            @Enum.GetName(typeof(KnowledgeCommunity.Service.Enum.State), item.State)
                        </td>
                        <td>
                            @item.CurrentPrice
                        </td>
                        <td>
                            <a href="@Url.Action("DoApproveC", "Zone", new { id = item.Id })" title="">同意</a>
                            <a href="@Url.Action("DoCancelC", "Zone", new { id = item.Id })" title="">不同意</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;">
        </div>
    </div>
</div>
<div class="contentcontainer">
    <div class="headings altheading">
        <h2>
            论坛列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>
                        名称
                    </th>
                    <th>
                        发布者
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        热议数
                    </th>
                    <th>
                        管理
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Tribune>)ViewData["Tri"])
                {
                    <tr class="alt">
                        <td>
                            @item.Title
                        </td>
                        <td>
                            @item.Sponsor
                        </td>
                        <td>
                            @item.AddTime
                        </td>
                        <td>
                            @item.TopicNumber
                        </td>
                        <td>
                            <a href="@Url.Action("DoApproveT", "Zone", new { id = item.Id })" title="">同意</a>
                            <a href="@Url.Action("DoCancelT", "Zone", new { id = item.Id })" title="">不同意</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;">
        </div>
    </div>
</div>
